#!/usr/bin/env python
# coding: utf-8
import sys
sys.path.append('./Lib/')
from File_Operation import *

file_name="sba_tb"
parton_pt="10"
event_kind=file_name+"_"+parton_pt
target_name="input_param_{}".format(event_kind)

original_folder=sba_tb_cut
general_file="run_{}_tag_1_banner.txt"
origin_file="run_{}_tag_1_banner.txt"


label="#  Integrated weight (pb)  :"


target_folder=Create_Folder(target_name,"../output_data")
Move_Series_Files(general_file,origin_file,original_folder,target_folder)
xection_word_list=Extract_One_Sentence_From_MultiFile(target_folder,label)
xection_list=[eval(word.split(":",2)[1]) for word in xection_word_list]

print(xection_list)

